UMASK
Section: MINTLIB LIBRARY FUNCTIONS
(3)
Updated: 3 March 1993
Index
Return to Main Contents
NAME
umask - set file creation mode mask
SYNOPSIS
#include <unistd.h>
#include <sys/stat.h>
int umask(int mask);
DESCRIPTION
umask sets the process's file creation mask to mask and returns
the previous value of the mask. The low-order 9 bits of mask are
used whenever a file is created, clearing corresponding bits in
the file access permissions (see stat). This clearing restricts
the default access to a file.
The mask is inherited by child processes.
RETURN VALUES
umask returns the previous value of the file creation mask.
SEE ALSO
chmod(3),
open(3),
Pumask(2)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 11:15:03 GMT, June 22, 2025